package com.ruoyi.purchase.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 检验项目对象 inspection_item
 * 
 * @author ruoyi
 * @date 2025-10-31
 */
public class InspectionItem extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 项目ID */
    private Long id;

    /** 检验方案编号 */
    @Excel(name = "检验方案编号")
    private String schemeId;

    /** 检验项目名称 */
    @Excel(name = "检验项目名称")
    private String itemName;

    /** 检验指标 */
    @Excel(name = "检验指标")
    private String inspectionIndex;

    /** 检验方法 */
    @Excel(name = "检验方法")
    private String inspectionMethod;

    /** 标准值 */
    @Excel(name = "标准值")
    private String standardValue;

    /** 上限值 */
    @Excel(name = "上限值")
    private String upperLimit;

    /** 下限值 */
    @Excel(name = "下限值")
    private String lowerLimit;

    /** 排序 */
    @Excel(name = "排序")
    private Long sortOrder;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setSchemeId(String schemeId) 
    {
        this.schemeId = schemeId;
    }

    public String getSchemeId() 
    {
        return schemeId;
    }

    public void setItemName(String itemName) 
    {
        this.itemName = itemName;
    }

    public String getItemName() 
    {
        return itemName;
    }

    public void setInspectionIndex(String inspectionIndex) 
    {
        this.inspectionIndex = inspectionIndex;
    }

    public String getInspectionIndex() 
    {
        return inspectionIndex;
    }

    public void setInspectionMethod(String inspectionMethod) 
    {
        this.inspectionMethod = inspectionMethod;
    }

    public String getInspectionMethod() 
    {
        return inspectionMethod;
    }

    public void setStandardValue(String standardValue) 
    {
        this.standardValue = standardValue;
    }

    public String getStandardValue() 
    {
        return standardValue;
    }

    public void setUpperLimit(String upperLimit) 
    {
        this.upperLimit = upperLimit;
    }

    public String getUpperLimit() 
    {
        return upperLimit;
    }

    public void setLowerLimit(String lowerLimit) 
    {
        this.lowerLimit = lowerLimit;
    }

    public String getLowerLimit() 
    {
        return lowerLimit;
    }

    public void setSortOrder(Long sortOrder) 
    {
        this.sortOrder = sortOrder;
    }

    public Long getSortOrder() 
    {
        return sortOrder;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("schemeId", getSchemeId())
            .append("itemName", getItemName())
            .append("inspectionIndex", getInspectionIndex())
            .append("inspectionMethod", getInspectionMethod())
            .append("standardValue", getStandardValue())
            .append("upperLimit", getUpperLimit())
            .append("lowerLimit", getLowerLimit())
            .append("sortOrder", getSortOrder())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
